package com.cloud.basic.Advance.Design.Flyweight_Pattern;

/**
 * @program: basic
 * @description: 黑色棋子类
 * @author: Cloud
 * @create: 2022/2/23 14:30:43
 */
public class BlackChessman extends AbstractChessman{

    /* *
     * 功能描述: 构造方法 初始化黑棋子
     */
    public BlackChessman() {
        super("●");
        System.out.println("--BlackChessman Construction Exec!!!");
    }

    // 点坐标设置
    @Override
    public void point(int x, int y) {
        this.x = x;
        this.y = y;
        // 显示棋子内容
        show();
    }
}
